import VueRouter from 'vue-router'

// 导入 组件
import HomeContainer from './components/tabbar/HomeContainer.vue'
import MenberContainer from './components/tabbar/MenberContainer.vue'
import ShopCartContainer from './components/tabbar/ShopCartContainer.vue'
import SearchContainer from './components/tabbar/SearchContainer.vue'



// 导入的两个子组件


// 3. 创建路由对象
var router = new VueRouter({
  routes: [
    {path:'/home',component:HomeContainer},
    {path:'/member',component:MenberContainer},
    {path:'/shopcar',component:ShopCartContainer},
    {path:'/search',component:SearchContainer}

    
  ],
  linkActiveClass:'mui-active'
})

// 把路由对象暴露出去
export default router